package controllers

import (
	"git.oschina.net/zzx2010/go/mybee/models"
	"github.com/astaxie/beego"
)

type ItemsController struct {
	beego.Controller
}

func (c *ItemsController) Get() {
	items := models.GetAllI()
	c.Data["json"] = items
	c.ServeJSON()
}
